import request from "/@/utils/request"

export function fetchList(query?: Object) {
  return request({
    url: '/ai/aiModelDevCategory/list',
    method: 'get',
    params: query
  })
}

export function addObjBatch(obj?: Object) {
  return request({
    url: '/ai/aiModelDevCategory/saveBatch',
    method: 'post',
    data: obj
  })
}

export function getObj(id?: string) {
  return request({
    url: '/ai/aiModelDevCategory/' + id,
    method: 'get'
  })
}

export function delObjsByDevCategoryIdsAndModelId(devCatgoryIds?: Object,modelId?: Number) {
  return request({
    url: '/ai/aiModelDevCategory/removeByIdsAndModelId/'+ modelId.toString(),
    method: 'delete',
    data: devCatgoryIds
  })
}

export function putObj(obj?: Object) {
  return request({
    url: '/ai/aiModelDevCategory',
    method: 'put',
    data: obj
  })
}

